package com.lyf.design.practice.theory.structure.proxy.archived.v1;

/**
 * @author LYF
 * @date 2022/6/21
 */
public class TankProxy {
    Tank tank;

    public TankProxy(Tank tank) {
        this.tank = tank;
    }

    void shoot(){
        System.out.println("proxy...before");
        tank.shot();
        System.out.println("proxy...after");
    }
}
